title Pointers

.386
.model flat, stdcall
.stack 4096

ExitProcess proto, dwExitCode: dword

pbyte typedef ptr byte 
pword typedef ptr word
pdword typedef ptr dword

.data
arrayB byte 10h, 20h, 30h
arrayW word 1, 2, 3
arrayD dword 4, 5, 6

ptr1 pbyte arrayB
ptr2 pword offset arrayW
ptr3 pdword offset arrayD

.code
main proc
mov esi, ptr1
mov al, [esi]
mov esi, ptr2
mov ax, [esi]
mov esi, ptr3
mov eax, [esi]

invoke ExitProcess, 0
main endp
end main